import request from '@/utils/request';
// 获取首页信息 title icon
export function getIndexPlatformInfo() {
  return request({
    url: '/appv2/api/index/platformInfo',
    // url: 'http://universityed4e759ca2ed893test.chatgk.com/api/index/platformInfo',
    method: 'post',
  });
}

// 取消最终方案
export function expenditure(data) {
  return request({
    url: '/dev-api/api/index/subscriber',
    method: 'get',
    data: data,
  });
}
// 取消最终方案
export function unsubmit(data) {
  return request({
    url: '/dev-api/api/Subscriber/unsubmit',
    method: 'post',
    data: data,
  });
}
// 审核通过
export function Approved(data) {
  return request({
    url: '/dev-api/api/Subscriber/save',
    method: 'post',
    data: data,
  });
}
// 获取智能填表列表
export function schoolEnrollChance(data) {
  return request({
    url: '/appv2/api/index/schoolEnrollChance',
    method: 'post',
    data: data,
  });
}
// app端的账号登录
export function phoneLogin(data) {
  return request({
    url: '/appv2/api/index/phoneLogin',
    method: 'post',
    data: data,
  });
}
// 保存志愿表
export function zySave(data) {
  return request({
    url: '/appv2/api/index/zySave',
    method: 'post',
    data: data,
  });
}
// 设置最终方案
export function finalPlan(data) {
  return request({
    url: '/dev-api/api/experts/finalPlan',
    method: 'post',
    data: data,
  });
}
// 下载志愿表
export function downloadZY(data) {
  return request({
    url: '/appv2/api/index/downloadZY',
    method: 'post',
    data: data,
    // headers:{
    // 	'Content-Type':'application/josn;application/octet-stream'
    // },
    // responseType:'blob'
  });
}
// 分享志愿表
export function shareZY(data) {
  return request({
    url: '/appv2/api/index/shareZY',
    method: 'post',
    data: data,
  });
}

// 下载打印版
export function shareZYNew(data) {
  return request({
    url: '/appv2/api/index/shareZYNew',
    method: 'post',
    data: data,
  });
}
// 下载合同版
export function printContract(data) {
  return request({
    url: '/appv2/api/index/downloadZYpdf',
    method: 'post',
    data: data,
  });
}

// 获取志愿表详情
export function getZyInfo(data) {
  return request({
    url: '/appv2/api/index/zyInfo',
    method: 'post',
    data: data,
  });
}
// 修改个人资料
export function editUser(data) {
  return request({
    url: '/appv2/api/index/editUser',
    method: 'post',
    data: data,
  });
}
// 位次查询条件
export function scoreStageFilter(data) {
  return request({
    url: '/appv2/api/index/scoreStageFilter',
    method: 'post',
    data: data,
  });
}
// 位次查询
export function scoreStageInfo(data) {
  return request({
    url: '/appv2/api/index/scoreStageInfo',
    method: 'post',
    data: data,
  });
}

// 工具箱提前批招生计划
export function getPreSchoolPlan(data) {
  return request({
    url: '/dev-api/api/toolbox/schoolPlan',
    method: 'post',
    data: data,
  });
}

export function getSchoolPlan(data) {
  return request({
    url: '/appv2/api/index/schoolPlan',
    method: 'post',
    data: data,
  });
}

//获取学校专业分数线筛选条件 or 提前批
export function getSchoolPlanFilter(data) {
  return request({
    url: '/dev-api/api/toolbox/OrdinaryBatchFiter',
    method: 'post',
    data: data,
  });
}

//院校详情
export function getSchoolHome(data) {
  return request({
    url: '/appv2/api/index/schoolHome',
    method: 'post',
    data: data,
  });
}

// 专业评级
export function getSchoolSubjectEvaluate(data) {
  return request({
    url: '/appv2/api/index/schoolSubjectEvaluate',
    method: 'post',
    data: data,
  });
}

// 提前批分类
export function getPreBatchLevel(data) {
  return request({
    url: '/dev-api/api/toolbox/preBatchLevel',
    method: 'post',
    data: data,
  });
}

// 院系设置
export function getSchoolYXMajor(data) {
  return request({
    url: '/appv2/api/index/schoolYXMajor',
    method: 'post',
    data: data,
  });
}

// 就业报告
export function getSchoolJY(data) {
  return request({
    url: '/appv2/api/index/schoolJY',
    method: 'post',
    data: data,
  });
}

//招生简章
export function getSchoolZS(data) {
  return request({
    url: '/appv2/api/index/schoolZS',
    method: 'post',
    data: data,
  });
}

//获取学校分数线
export function getSchoolYearline(data) {
  return request({
    url: '/appv2/api/index/schoolYearline',
    method: 'post',
    data: data,
  });
}

// 获取专业分数线
export function getSchoolScoreline(data) {
  return request({
    url: '/appv2/api/index/schoolScoreline',
    method: 'post',
    data: data,
  });
}

// 获取专业分数线筛选条件
export function getSchoolScorelineFilter(data) {
  return request({
    url: '/dev-api/api/toolbox/schoolScorelineFilter',
    method: 'post',
    data: data,
  });
}

// 各专业招生计划提前批
export function getPreBatchPlan(data) {
  return request({
    // url: '/appv2/api/index/preBatchPlan',
    url: '/appv2/api/index/preBatchPlan_new',
    method: 'post',
    data: data,
  });
}

// 历年录取-提前批--提前批分数线
export function getPreBatchSearch(data) {
  return request({
    url: '/appv2/api/index/preBatchSearch',
    method: 'post',
    data: data,
  });
}

// 新提前批搜索
export function preBatchPlanSearchSchool(data) {
  return request({
    // url: '/appv2/api/index/preBatchPlanSearchSchool',
    url: '/appv2/api/index/preBatchPlanSearchSchool_new',
    method: 'post',
    data: data,
  });
}

// 机构-分数线筛选条件
export function schoolScorelineFilter(data) {
  return request({
    url: '/dev-api/api/toolbox/schoolScorelineFilter',
    method: 'post',
    data: data,
  });
}

// 机构-院校分数线
export function schoolScoreline(data) {
  return request({
    url: '/dev-api/api/toolbox/schoolScoreline',
    method: 'post',
    data: data,
  });
}

// 机构-院校分数线
export function majorScoreline(data) {
  return request({
    url: '/dev-api/api/toolbox/majorScoreline',
    method: 'post',
    data: data,
  });
}

// 加入对比---取消对比
export function getLikeSave(data) {
  return request({
    url: '/appv2/api/index/likeSave',
    method: 'post',
    data: data,
  });
}

// 获取关注列表 --对比列表
export function getLikeList(data) {
  return request({
    url: '/appv2/api/index/likeList',
    method: 'post',
    data: data,
  });
}

// 查专业筛选条件
export function getAllMajor(data) {
  return request({
    url: '/appv2/api/index/allMajor',
    method: 'post',
    data: data,
  });
}

//获取热门专业
export function getMajorDetail(data) {
  return request({
    url: '/appv2/api/index/majorDetail',
    method: 'post',
    data: data,
  });
}

//获取全部职业
export function getAllCareer(data) {
  return request({
    url: '/appv2/api/index/allCareer',
    method: 'post',
    data: data,
  });
}

//职业详情
export function getCareerDetail(data) {
  return request({
    url: '/appv2/api/index/careerDetail',
    method: 'post',
    data: data,
  });
}

//职业就业岗位
export function getCareerJobPosition(data) {
  return request({
    url: '/appv2/api/index/careerJobPosition',
    method: 'post',
    data: data,
  });
}

//职业企业招聘
export function getCareerJobCompany(data) {
  return request({
    url: '/appv2/api/index/careerJobCompany',
    method: 'post',
    data: data,
  });
}

// 获取省份
export function getProvince(data) {
  return request({
    url: '/appv2/api/index/provinceInfo',
    method: 'post',
    data: data,
  });
}

// 批次线
export function getBatchLineInfo(data) {
  return request({
    url: '/appv2/api/index/batchLineInfo',
    method: 'post',
    data: data,
  });
}

// 一分一段
export function getScoreStageFilter(data) {
  return request({
    url: '/dev-api/api/toolbox/scoreStageFilter',
    method: 'post',
    data: data,
  });
}

// 位次查询
export function getScoreStageInfo1(data) {
  return request({
    url: '/appv2/api/index/scoreStage',
    method: 'post',
    data: data,
  });
}

// 位次查询
export function getScoreStageInfo2(data) {
  return request({
    url: '/dev-api/api/toolbox/scoreStageInfo',
    method: 'post',
    data: data,
  });
}

// 选科查询
//选科省份信息
export function getSelectProvince(data) {
  return request({
    url: '/appv2/api/index/selectProvince',
    method: 'post',
    data: data,
  });
}

// 招生简章详情
export function getSchoolZSDetail(data) {
  return request({
    url: '/appv2/api/index/schoolZSDetail',
    method: 'post',
    data: data,
  });
}

// 各类描述信息
export function getNoteDesc(data) {
  return request({
    url: '/appv2/api/index/noteDesc',
    method: 'post',
    data: data,
  });
}

//测评专业推荐
export function getSelectSearchMajorClassJudge(data) {
  return request({
    url: '/appv2/api/index/selectSearchMajorClassJudge',
    method: 'post',
    data: data,
  });
}
// 查专业新接口
export function problem(data) {
  return request({
    url: '/appv2/api/judg/problem',
    method: 'post',
    data: data,
  });
}

//测评专业推荐
export function getRunInfo(data) {
  return request({
    url: '/appv2/api/index/runInfo',
    method: 'post',
    data: data,
  });
}

// 获取省份
export function getProvinceList(data) {
  return request({
    url: '/dev-api/api/toolbox/getProvince',
    method: 'post',
    data: data,
  });
}

// 获取权限菜单
export function menuConfig(data) {
  return request({
    url: '/dev-api/api/auth/menuConfig',
    method: 'post',
    data: data,
  });
}

// 添加目录
export function menuSave(data) {
  return request({
    url: '/dev-api/api/auth/menuSave',
    method: 'post',
    data: data,
  });
}

// 删除目录
export function menuDel(data) {
  return request({
    url: '/dev-api/api/auth/menuDel',
    method: 'post',
    data: data,
  });
}

// 工单管理-获取学生信息
export function userInfo(data) {
  return request({
    url: '/dev-api/api/apply/userInfo',
    method: 'post',
    data: data,
  });
}

// 工单管理-修改学生信息
export function userVipSave(data) {
  return request({
    url: '/dev-api/api/apply/userVipSave',
    method: 'post',
    data: data,
  });
}

// 工单管理-修改学生信息
export function getNoteDescTips(data) {
  return request({
    url: '/dev-api/api/Systerm/getNoteDesc',
    method: 'post',
    data: data,
  });
}

// 新提前批搜索
export function gkbInfo(data) {
  return request({
    url: '/appv2/api/index/gkbInfo',
    method: 'post',
    data: data,
  });
}

// 同分去向-院校
export function getSchools(data) {
  return request({
    url: '/appv2/api/samescore/schools',
    method: 'post',
    data: data,
  });
}
// 同分去向-专业
export function getMajors(data) {
  return request({
    url: '/appv2/api/samescore/majors',
    method: 'post',
    data: data,
  });
}
// 同分去向-地区
export function getAreas(data) {
  return request({
    url: '/appv2/api/samescore/areas',
    method: 'post',
    data: data,
  });
}
// 同分去向-描述
export function getRemark(data) {
  return request({
    url: '/appv2/api/samescore/remark',
    method: 'post',
    data: data,
  });
}

// 获取应用列表
export function getAppList(data) {
  return request({
    url: '/dev-api/api/ManagerAppStore/managerAppList',
    method: 'post',
    data: data,
  });
}

export function getAppListsd(data) {
  return request({
    url: '/dev-api/api/ManagerAppStore/countApp',
    method: 'post',
    data: data,
  });
}

// 获取应用详情
export function getAppInfo(data) {
  return request({
    url: '/dev-api/api/ManagerAppStore/managerAppDetail',
    method: 'post',
    data: data,
  });
}
//办学实力
export function schoolInfoDataList(data) {
  return request({
    url: '/dev-api/api/school/schoolInfo',
    method: 'post',
    data: data,
  });
}

// 更多-诊断成绩省份
export function searchFilter(data) {
  return request({
    url: '/appv2/api/diagnosis/searchFilter',
    method: 'post',
    data: data,
  });
}

// 更多-诊断成绩省份-查询成绩
export function transScore(data) {
  return request({
    url: '/appv2/api/diagnosis/transScore',
    method: 'post',
    data: data,
  });
}

// 职业库-专业-人才培养院校
export function careerSchool(data) {
  return request({
    url: '/appv2/api/career/careerSchool',
    method: 'post',
    data: data,
  });
}
